home *** CD-ROM | disk | FTP | other *** search
- Path: its.hooked.net!usenet
- From: raymac@hooked.net
- Newsgroups: comp.lang.c++
- Subject: MSVC for NT custom Toolbar - CTOOLBAR::SETSIZES
- Date: Mon, 19 Feb 1996 11:49:19 -0800
- Organization: Hooked Online Services
- Message-ID: <3128D43F.70F@hooked.net>
- NNTP-Posting-Host: also-17.ppp.hooked.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (WinNT; I)
-
- Please, help! I am using MSVC for NT 1.10.
- I have work for days trying to figure out want I have been doing
- wrong. I created this really cool user interface with nice big
- buttons, not the standard MSVC size buttons that the AppWizard
- creates. Using CToolBar::SetSizes I resize the buttons. Now
- here is were the problems begin. The code compiles fine, but
- when I run it I get an error in BarTool.cpp (part of foundation
- class) on the line that says:
- ASSERT(sizeButton.cx >= sizeImage.cx + 6);
- ASSERT(sizeButton.cy >= sizeImage.cy + 6);
- I can choose to ignore two error messages but when the window
- opens the buttons are the right size and the bitmaps
- are totally misaligned. I have toyed with everything and
- nothing seems to work.
-
- Also, can I display 256 colors I can only display 16 now. If I
- can, how? If I can't why?
-
- Thanks.
-
-
- raymac@hooked.net
-